#ifndef QIPEDITOR_H
#define QIPEDITOR_H

#include <QWidget>

#if defined(EXPORT_LIBRARY)
#  define API_EXPORT Q_DECL_EXPORT
#else
#  define API_EXPORT Q_DECL_IMPORT
#endif

namespace Ui {
class QIpEditor;
}

class API_EXPORT QIpEditor : public QWidget
{
    Q_OBJECT

public:
    explicit QIpEditor(QWidget *parent = 0);
    ~QIpEditor();
    QString ipAddressString();
signals:
    void ipAddressStringChanged(QString ip);
public slots:
    void setIpAddress(QString &string);
private slots:
    void spinBoxValueChanged();
protected:
    bool eventFilter(QObject *object, QEvent *event);
private:
    Ui::QIpEditor *ui;
};

#endif // QIPEDITOR_H
